<template>
  <div>  
     <button @click="jia()">+</button>  
      <div>{{ $store.state.sounter }}</div>   
  </div>  
</template>  
    
<script>  
export default {  
//   name:'',   
  data() {   
    return {   
          
    }   
  },   
  mounted(){   
  },   
  methods: {   
    jia(){   
       this.$store.dispatch('jia',1)   
    }     
  },    
}  
</script> 
<style lang='less' scoped> 

</style>